<template>
  <div class="content">
    <h1>{{type}}分类</h1>
    <slot name="typeList" :list = "list" :a="1" :b="2"></slot>
    <footer>底部</footer>
  </div>
</template>

<script>
export default {
    name:"Content",
    props:["type","list"]
}
</script>

<style scoped>
.content {
  width: 200px;
  height: 300px;
  background: greenyellow;
}

.content h1 {
  background: yellow;
}
</style>